package prototype.autosurfer;

import net.m510.autosurfer.core.process.AbstractSurfProcess;
import net.m510.autosurfer.core.process.SurfProcess;

import org.apache.http.client.protocol.HttpClientContext;
import org.apache.http.impl.client.CloseableHttpClient;
import org.apache.http.impl.client.HttpClients;

public class ProtoMain {
	public static void main(String[] args) throws Exception {
		new ProtoMain().go();
	}
	void go() throws Exception {
		// initialize
		CloseableHttpClient cl = HttpClients.createDefault();
		HttpClientContext ctx = HttpClientContext.create();
		// build process chain
		SurfProcess root = new RootProcess(cl,ctx);
		AbstractSurfProcess next = new NextProcess(cl,ctx);
//		root.addNext(next);
		root.process(null);
	}
}
